package com.csu.server.ui.desktop;

import java.awt.event.MouseEvent;

import javax.swing.JInternalFrame;

import com.csu.server.ui.desktop.internal.ConfigFrame;

public class ConfigItem extends EIMDesktopItem {

	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;


	public ConfigItem() {
		super();
		
	}


	public ConfigItem(EIMDesktop desktop,ItemConfig cofig) {
		super(desktop,cofig);
		
	}


	public void mouseClicked(MouseEvent e) {
		super.mouseClicked(e);
		if(e.getClickCount()==2){
			ConfigFrame childFrame = new ConfigFrame();
			childFrame.setClosable(true);
			this.getDesktop().add(childFrame, new Integer(10));
			childFrame.show();
		}
	}

	
	public void mousePressed(MouseEvent e) {

	}

	
	public void mouseReleased(MouseEvent e) {

	}

}
